<div style="border:#cc0001 1px solid; text-align:left; line-height:20px; background:#FFF7E5; margin-top:10px;color:#808080;width:768px; padding-top:16px; font-weight:bold; padding-bottom:16px; line-height:28px;font-size:14px">
<div style="width:538px; margin:auto">
<?php if($tag=='shoplist'){?>
抱歉，此店铺无返米或不存在！<br/>
温馨提示： <br/>
1、去刚才你看的商品继续购买  <a style="font-size:14px; color:#be0100" href="http://s.taobao.com/search?v=shopsearch&q=<?=$keyword?>" target="_blank">去淘宝看看</a> <br/>
2、去返米频道看看其他商品   <a style="font-size:14px; color:#be0100" href="http://s8.taobao.com/list.html?&pid=mm_<?=MYUSERPID?>_0_0&commend=all&unid=<?=$_SESSION['dduserid']?>&taoke_type=1" target="_blank">再去看看</a><br/>
<?php }elseif($tag=='list' && $iid>0){?>
抱歉，此商品无返米或不存在！<br/>
温馨提示： <br/>
<?php if($tmall==0){?>
1、去刚才你看的商品继续购买  <a style="font-size:14px; color:#be0100" href="http://item.taobao.com/item.htm?id=<?=$iid?>" target="_blank">去淘宝购买</a> <br/>
<?php }else{?>
1、去刚才你看的商品继续购买  <a style="font-size:14px; color:#be0100" href="http://s.click.taobao.com/t_9?p=mm_<?=MYUSERPID?>_0_0&l=<?=urlencode('http://detail.tmall.com/item.htm?id='.$iid)?>&u=<?=$_SESSION['dduserid']?>" target="_blank"><b style="color:#F00">预计最高补贴1%</b> 去淘宝购买</a> <br/>
<?php }?>
2、去返米频道看看其他商品   <a style="font-size:14px; color:#be0100" href="http://s8.taobao.com/list.html?&pid=mm_<?=MYUSERPID?>_0_0&commend=all&unid=<?=$_SESSION['dduserid']?>&taoke_type=1" target="_blank">再去看看</a><br/>
<?php }elseif($tag=='list' && $cid>0){?>
抱歉，此分类无返米或不存在！<br/>
温馨提示： <br/>
1、去刚才你看的商品继续购买  <a style="font-size:14px; color:#be0100" href="http://s8.taobao.com/search?pid=mm_<?=MYUSERPID?>_0_0&unid=<?=$_SESSION['dduserid']?>&mode=63&refpos=&cat=<?=$cid?>&commend=all" target="_blank">去淘宝购买</a> <br/>
2、去返米频道看看其他商品   <a style="font-size:14px; color:#be0100" href="http://s8.taobao.com/list.html?&pid=mm_<?=MYUSERPID?>_0_0&commend=all&unid=<?=$_SESSION['dduserid']?>&taoke_type=1" target="_blank">再去看看</a><br/>
<?php }?>
</div>
</div>
<style>
.tuijian{border:#cc0001 1px solid;width:768px; margin-top:5px; text-align:center; overflow:hidden}
.tuijian table{text-align:left;}
.tuijian table .timg{ height:142px;}
.tuijian table .ttitle{ height:34px; overflow:hidden}
.tuijian table img{ border:#cc0001 1px solid; width:138px; height:138px }
.tuijian table div.ttitle,div.tfan,div.tprice{margin-top:3px; width:135px;}
.tuijian table .tfan b{ font-size:16px; color:#be0100; font-family:"Times New Roman", Times, serif;}
.tuijian table .tprice b{ font-size:16px; color:#be0100; font-family:"Times New Roman", Times, serif;}
.tuijian table .ttitle a:link {	COLOR: #3366cc; FONT-SIZE: 12px; TEXT-DECORATION: none; font-weight:normal}
.tuijian table .ttitle a:visited {	COLOR: #3366cc; FONT-SIZE: 12px; TEXT-DECORATION: none; font-weight:normal}
.tuijian table .ttitle a:active {	COLOR: #f30; FONT-SIZE: 12px; TEXT-DECORATION: underline;font-weight:normal}
.tuijian table .ttitle a:hover {	COLOR: #f30; FONT-SIZE: 12px; TEXT-DECORATION: underline;font-weight:normal}
</style>
<div class="tuijian">
<div style="font-size:14px; padding-left:20px; color:#F60; font-weight:bold; text-align:left; padding-top:5px">今日推荐</div>
<table border="0" style="margin:0 auto">
  <tr>
  <?php 
  $Taoapi->method = 'taobao.taobaoke.items.get';
    $Taoapi->fields = 'iid,num_iid,title,nick,pic_url,price,click_url,shop_click_url,volume,commission,commission_rate,commission_num,commission_volume,';
    $Taoapi->nick = MYUSERNICK;
    $Taoapi->keyword = HOTWORD;
    $Taoapi->page_size = '5';
	$Taoapi->page_no=2;
    $Taoapi->sort = 'commissionNum_desc';
    $Taoapi->outer_code=$_SESSION["dduserid"];
    $rexiaoapi= $Taoapi->Send('get','xml')->getArrayData();
    $ListHot = $rexiaoapi["taobaoke_items"]["taobaoke_item"]; 
  
  foreach($ListHot as $row){
  //简易模式还是详细模式选择不同的链接地址
  $hottitle=str_replace("'","",$row["title"]);
  $hottitle=strip_tags($hottitle);
	if(WEBTYPE=='0'){
		$gourl="goto.php?url=".base64_encode($row["click_url"])."&pic=".base64_encode($row["pic_url"]."_100x100.jpg")."&price=".$row["price"]."&fan=".ck_fxje($row["commission"],$_SESSION['dduserlevel'])."&name=".urlencode(strip_tags($row["title"]))."&act=goods&iid=".$row["num_iid"];
	}else{
		$gourl="view".$url_head_iid.$row["num_iid"].$url_end;
	}
?>
    <td>
    <div class="timg"><a href="<?=$gourl?>" target="_blank"><?=html_img($row["pic_url"]."_160x160.jpg",$hottitle,'',138,138)?></a></div>
    <div class="ttitle"><a  href="<?=$gourl?>" target="_blank"><?=$hottitle?></a></div>
    <div class="tfan">原价：<b><?php echo $row["price"]; ?></b> 元</div>
    <div class="tprice">返米：<b><? echo ck_fxje($row["commission"],$_SESSION['dduserlevel'])*100?></b>米</div>
    </td>
  <?php }?>
  </tr>
</table>

</div>